package co.edu.javeriana.fw.comunicacion;

import java.io.Serializable;

import java.rmi.Naming;
import java.rmi.RMISecurityManager;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

import java.util.List;

/**
 * @author Administrador
 * @version 1.0
 * @created 09-Feb-2009 1:43:59 PM
 */
public abstract class Peer extends UnicastRemoteObject
			   implements IServicios, Serializable {

    public Peer() throws RemoteException{
        super();
    }
    private AddressMachine myAddressMachine;
    
    public void setMyAddressMachine(AddressMachine myAddressMachine) {
        this.myAddressMachine = myAddressMachine;
    }

    public AddressMachine getMyAddressMachine() {
        return myAddressMachine;
    }
    public abstract Object recibirEvento(Object jugada) throws RemoteException;

    public abstract void enviarNotificacion(Object jugada, List jugadores) throws RemoteException;
    public abstract void enviarNotificacion(Object jugada, Object jugador) throws RemoteException;
    public abstract void enviarNotificacion(Object jugada) throws RemoteException;

}
